#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

int main_0009()
{
    int boys, girls;
    cin >> boys >> girls;
    if (boys + girls < 10) {
        cout << "water";
    } else if ( boys > girls ) {
        cout << "tree";
    } else {
        cout << "tea";
    }
    return 0;
}
